<?php
if (!defined('TYPO3_MODE')) die('Access denied.');

# récupération de la conf
$active = unserialize($_EXTCONF);

# on charge le patch accent (é = rr) pour realurl si activé dans l'extension
if (t3lib_extMgm::isLoaded('realurl') && $active['realUTF8'])
	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration']['cmd_api'] = 'EXT:cmd_api/res/class.user_realURL.php:user_realURL->insertFunction';

# on charge les custom button du mode liste
if ($active['customButton']) {
	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['getTable']['cmd_api'] = 'EXT:cmd_api/res/cbl/class.user_localrecordlist.php:&user_localrecordlist_getTable';
	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions']['cmd_api'] = 'EXT:cmd_api/res/cbl/class.user_localrecordlist.php:&user_localrecordlist_actions';
	if (t3lib_div::int_from_ver(TYPO3_version) >= 4005000) $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list_extra.inc'] = t3lib_extMgm::extPath($_EXTKEY).'res/cbl/class.ux_localRecordList.php';
	else $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list_extra.inc'] = t3lib_extMgm::extPath($_EXTKEY).'res/cbl44/class.ux_localRecordList.php'; // 4.4.x and older compat version
}

# on déclare le compressor CSS
if ($active['cssCompressor'] && t3lib_div::int_from_ver(TYPO3_version) < 4008000)
	$TYPO3_CONF_VARS['FE']['cssCompressHandler'] = t3lib_extMgm::extPath($_EXTKEY).'class.tx_cmdapi_compressor.php:tx_cmdapi_compressor->css_compress';
?>